const getCartList = () => {

  try {
    if (localStorage.cartList == undefined) {
      localStorage.cartList = []

    }
    return JSON.parse(localStorage.cartList) || []
  } catch (e) {
    return [];
  }
}


// 不要忘记把state, mutations等暴露出去。
export default {
  namespaced: true,
  state: {
    
  },
  mutations: {
   
  },
  actions: {

  },
  getters: {

  }

}
